package lec; 
interface S{
	public static final int x=10;
	public abstract String toprintString();
}
interface W{ int a=0; }
/**
 * class Y is abstract
 * @author administrator
 *
 */
abstract class Y implements S, W{
	public abstract String toprintString();
}
class Z extends Y{
	public String toprintString(){ return ""+x;}
}
public class TestClass {
	public static void main(String[] arg){
		S a = new Z();
		S b = new S(){ public String toprintString() { return "Hi"; }};
		W c = new Z();
		Y d = new Z();
		
		a = b;
		b = a;
//		a = c;
	}
}
